/***************************************************************
 * FILENAME:  usart3200.h
 * AUTHOR:    zimmermane@msoe.edu <Evan Zimmerman>
 *			  duerk@msoe.edu <Kevin Duer>
 * DATE:      11 Sept 2012
 * PROVIDES:  
 *    - header file for USART Device Driver 
 *    - Contains subroutines and functions for the USART
 **************************************************************/
#ifndef USART_DRIVER
#define USART_DRIVER

/*
 * usart_init
 * Purpose: initialize the usart
 *			default: 9600 baud , 1 stop, no parity, transmitter on
 *			 ubrr = f_cpu/(baud*16) -1
 * Parameters: None
 * Returns: None
 */
void usart_init(void);

/*
 * usart_baud
 * Purpose: allows the user to set the desired baud rate
 * Parameters: highByte: byte to be written to ubrrh
 *			   lowByte: byte to be written to ubrrl
 * Returns: None
 */
void usart_baud(unsigned char highByte, unsigned char lowByte);

/*
 * usart_send_data
 * Purpose: sends a byte to the udr to be transmitted
 * Parameters: theData: byte to be sent to the UDR
 * Returns: None
 */
void usart_send_data(unsigned char theData);


#endif
